package spring.aop;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Date;

public class UserServiceProxy implements InvocationHandler {
	Object obj = null;
	
	public UserServiceProxy(){}
	
	public UserServiceProxy(Object obj){
		this.obj = obj;
	}
	
	public Object invoke(Object arg0, Method arg1, Object[] arg2)
			throws Throwable {
		System.out.println(new Date());
		arg1.invoke(obj, arg2);
		return "Return of invoke Method in UserServiceProxy";
	}

}
